///////////////////////////////////////////////////////////
//  ViewTemplateCommand.cpp
//  Implementation of the Class ViewTemplateCommand
//  Created on:      21-Sep-2013 12:09:31 PM
//  Original author: Jakkaphan Aiemcharoenjit
///////////////////////////////////////////////////////////

#include "ViewTemplateCommand.h"
#include "CurrentCommand.h"

using namespace UI;
using namespace UI::CMD;


ViewTemplateCommand::ViewTemplateCommand(CPreviewDetailView* previewDetail, CTemplateView* _template)
{
  this->m_type = ICommand::VIEWTEMPLATE_CMD;
  this->m_previewDetailView = previewDetail;
  this->m_templateView = _template;
}


ViewTemplateCommand::~ViewTemplateCommand()
{

}


void ViewTemplateCommand::Execute()
{
  
  // Set current command
  CurrentCommand::GetInstance()->SetCurrentCommand(this->m_type);
}


ICommand::CommandType ViewTemplateCommand::GetType()
{
	return this->m_type;
}